
const app = getApp();
Page({
  data: {
    navshow:false,
    items: [],
    currentItem: 0,
  },
  onLoad:  function () {
  
  },
  toindex(){
    wx.navigateTo({
      url: 'plugin://edict-plugin/index?userId='+'kindear',
    })
  },
  wordselect(e){
    console.log(e)
    let word = e.detail.word;
    wx.navigateTo({
      url: 'plugin://edict-plugin/word?word='+word,
    })
  },
  nsearch(){
    this.setData({
      navshow:true
    })
  },
  word(e){
    wx.navigateTo({
      url: 'plugin://edict-plugin/word?word=mindful',
    })
  },
  search(){
    wx.navigateTo({
      url: 'plugin://edict-plugin/search',
    })
    let stas = app.edictlogin;
    if(stas){
      
    }
  },
  trans(){
    wx.navigateTo({
      url: 'plugin://edict-plugin/en-zh',
    })
  }
});